import { IRouteComponentProps } from 'umi'
import { FC } from 'react';
import TeachersLayout from './teacherLayout'

const Layouts: React.FC<IRouteComponentProps> = props => {
    // console.log(props.location.pathname)
    if (/\/teachers/.test(props.location.pathname)) {

        return <TeachersLayout>{props.children}</TeachersLayout>;
    }
    return props.children;
}
export default Layouts;